package com.tangcco.lockwell.domain.file;

import java.util.List;

public class QuestionJsonFile {
    private Integer question_type;
    // 对应JSON中每个"question"元素里的"question_index"字段，用于标识题目的序号等
    private Integer question_index;
    // 对应JSON中每个"question"元素里的"question_title"字段，题目标题相关内容
    private String question_title;
    // 对应JSON中每个"question"元素里的"options"字段，题目选项列表
    private List<String> options;
    // 对应JSON中每个"question"元素里的"correctAnswer"字段，题目的正确答案
    private String correctAnswer;

    @Override
    public String toString() {
        return "QuestionJsonFile{" +
                "question_type=" + question_type +
                ", question_index=" + question_index +
                ", question_title='" + question_title + '\'' +
                ", options=" + options +
                ", correctAnswer='" + correctAnswer + '\'' +
                '}';
    }

    public QuestionJsonFile(Integer question_type, Integer question_index, String question_title, List<String> options, String correctAnswer) {
        this.question_type = question_type;
        this.question_index = question_index;
        this.question_title = question_title;
        this.options = options;
        this.correctAnswer = correctAnswer;
    }

    public QuestionJsonFile() {
    }

    public Integer getQuestion_type() {
        return question_type;
    }

    public void setQuestion_type(Integer question_type) {
        this.question_type = question_type;
    }

    public Integer getQuestion_index() {
        return question_index;
    }

    public void setQuestion_index(Integer question_index) {
        this.question_index = question_index;
    }

    public String getQuestion_title() {
        return question_title;
    }

    public void setQuestion_title(String question_title) {
        this.question_title = question_title;
    }

    public List<String> getOptions() {
        return options;
    }

    public void setOptions(List<String> options) {
        this.options = options;
    }

    public String getCorrectAnswer() {
        return correctAnswer;
    }

    public void setCorrectAnswer(String correctAnswer) {
        this.correctAnswer = correctAnswer;
    }
}
